package com.utils.web.spring;

import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;

import lombok.extern.slf4j.Slf4j;

@Configuration
@EnableScheduling
@Slf4j
public class SchedulingUtil {
	
	@Scheduled(cron= "0 50 23 * * ?")
//	@Scheduled(cron= "0 *1 * * * ?")
	public void getMsg() {
		log.info("定时任务:{}","getMsg");
	}
	
	@Scheduled(cron= "*/30 * * * * ?")
	public void getKeys() {
		
	}
	
}
